<?php
/**
 * @version		$Id: default_categories.php 772 2012-04-17 19:21:09Z jeffchannell $
 * @package		JCalPro
 * @subpackage	com_jcalpro

**********************************************
JCal Pro
Copyright (c) 2006-2012 Anything-Digital.com
**********************************************
JCalPro is a native Joomla! calendar component for Joomla!

JCal Pro was once a fork of the existing Extcalendar component for Joomla!
(com_extcal_0_9_2_RC4.zip from mamboguru.com).
Extcal (http://sourceforge.net/projects/extcal) was renamed
and adapted to become a Mambo/Joomla! component by
Matthew Friedman, and further modified by David McKinnis
(mamboguru.com) to repair some security holes.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This header must not be removed. Additional contributions/changes
may be added to this header as long as no information is deleted.
**********************************************
Get the latest version of JCal Pro at:
http://anything-digital.com/
**********************************************

 */

defined('JPATH_PLATFORM') or die;
$db = &JFactory::getDBO();
$query = 'select * from #__menu where menutype="mainmenu" and published=1 order by id';
$db->setQuery( $query );
$menuitem = $db->loadObjectList();

?>
<style type="text/css">
	.menutop{
		width:100%;
		height:auto;
		/*float:left;*/
		background:url(<?php echo $this->baseurl ?>/templates/wmc/images/tile_back1.gif) repeat-x;
		padding:30px 0px 10px 0px;
	}
	.menutop img{
		width:auto;
		height:auto;
		float:left;
		margin-top:-30px;
	}
	.menutop a{
		margin-right:20px;
		color:#606F79;
		font-size:11px;
		font-family:Arial,Helvetica,sans-serif;
	}
	.menu0{
		width:auto;
		height:auto;
		padding-top:25px;
		background:url(<?php echo $this->baseurl ?>/templates/wmc/images/icon-calendarview.gif) top center no-repeat;
	}
	.menu1{
		width:auto;
		height:auto;
		padding-top:25px;
		background:url(<?php echo $this->baseurl ?>/templates/wmc/images/icon-flyer.gif) top center no-repeat;
	}
	.menu2{
		width:auto;
		height:auto;
		padding-top:25px;
		background:url(<?php echo $this->baseurl ?>/templates/wmc/images/icon-weekly.gif) top center no-repeat;
	}
	.menu3{
		width:auto;
		height:auto;
		padding-top:25px;
		background:url(<?php echo $this->baseurl ?>/templates/wmc/images/icon-daily.gif) top center no-repeat;
	}
	.titletop{
		width:100%;
		height:70px;	
		line-height:70px;
		font-size:30px;
		font-weight:bold;
		color:#662d91;
		border-top:1px solid #ccc;
		border-bottom:1px solid #ccc;
	}
</style>

<div class="menutop">
<a href="http://www.wmcvietnam.com/calendar"><img src="<?php echo $this->baseurl ?>/templates/wmc/images/wmc-logo.png" /></a>
<?php
for($i=0;$i<count($menuitem);$i++){
?>
	<a class="menu<?php echo $i;?>" href="<?php echo $menuitem[$i]->link;?>&Itemid=<?php echo $menuitem[$i]->id;?>"><?php echo $menuitem[$i]->title;?></a>
<?php
}
?>
</div>
<div class="titletop">
<?php
$document = &JFactory::getDocument();
$renderer   = $document->loadRenderer('modules');
$position   = 'titletop';
$options   = array('style' => 'raw');
echo $renderer->render($position, $options, null);
?>
</div>

